package edu.unh.sustain;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import edu.unh.sustain.R;

public class SocialMediaActivity extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.social_media);

		Button socialize = (Button) findViewById(R.id.socializeButton);
		socialize.setOnClickListener(new View.OnClickListener() {
			public void onClick(View view) {
				Intent myIntent = new Intent(view.getContext(),
						SocializeActivity.class);
				startActivityForResult(myIntent, 0);
			}
		});

		Button news = (Button) findViewById(R.id.newsButton);
		news.setOnClickListener(new View.OnClickListener() {
			public void onClick(View view) {
				Intent myIntent = new Intent(view.getContext(),
						NewsActivity.class);
				startActivityForResult(myIntent, 0);
			}
		});

		Button youtube = (Button) findViewById(R.id.youtubeButton);
		youtube.setOnClickListener(new View.OnClickListener() {
			public void onClick(View view) {
				Intent myIntent = new Intent(view.getContext(),
						YouTubeActivity.class);
				startActivityForResult(myIntent, 0);
			}
		});
	}
}
